/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.example.touch.communication.entities;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;

/**
 *
 * @author krist_000
 */
public class RoomEvent extends Trigger {
    
    @Attribute
    private String type;
    
    @Attribute(name = "time", required = false)
    private String timeTable;
    
    @Element(name ="roomId")
    private String roomID;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTimeTable() {
        return timeTable;
    }

    public void setTimeTable(String timeTable) {
        this.timeTable = timeTable;
    }

    public String getRoomID() {
        return roomID;
    }

    public void setRoomID(String roomID) {
        this.roomID = roomID;
    }

    @Override
    public String toString() {
        return "Roomevent type " + type + " ID " + roomID + " timetable " + timeTable + "\n";
    }
    
    
}
